package it.univaq.di.helpdesk.presentation;


import java.util.ArrayList;
import java.util.List;

import org.apache.struts.upload.FormFile;
import org.apache.struts.validator.ValidatorForm;

public class TicketForm extends ValidatorForm {
	private int ticketID;
	private String statusName;
	private int catID;
	private int subCategoryID;
	private String priorityName;
	private int assignedId;
	private String subject;
	private String description;
	private String email;
	private boolean sendmail;
	private List<FormFile> formFiles;
	private FormFile attachmentFile;
	private int deviceID;
	
	public TicketForm() {
		super();
		this.formFiles = new ArrayList<FormFile>();
	}
	
	public int getTicketID() {
		return ticketID;
	}
	public void setTicketID(int ticketID) {
		this.ticketID = ticketID;
	}
	public String getSubject() {
		return subject;
	}
	public void setSubject(String subject) {
		this.subject = subject;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}	
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getPriorityName() {
		return priorityName;
	}
	public void setPriorityName(String priorityName) {
		this.priorityName = priorityName;
	}
	public int getCatID() {
		return catID;
	}
	public void setCatID(int catID) {
		this.catID = catID;
	}
	public int getSubCategoryID() {
		return subCategoryID;
	}
	public void setSubCategoryID(int subCategoryID) {
		this.subCategoryID = subCategoryID;
	}
	public void setSendmail(boolean sendmail) {
		this.sendmail = sendmail;
	}
	public boolean isSendmail() {
		return sendmail;
	}
	public void setStatusName(String statusName) {
		this.statusName = statusName;
	}
	public String getStatusName() {
		return statusName;
	}
	public void setAssignedId(int assignedId) {
		this.assignedId = assignedId;
	}
	public int getAssignedId() {
		return assignedId;
	}
	public void setAttachmentFile(int in, FormFile attachmentFile) {
		this.attachmentFile = attachmentFile;
		setFormFiles(attachmentFile);
	}
	public FormFile getAttachmentFile(int in) {
		return attachmentFile;
	}
	public List<FormFile> getFormFiles() {
		return formFiles;
	}
	public void setFormFiles(FormFile formFile) {
		this.formFiles.add(formFile);
	}

	public void setDeviceID(int deviceID) {
		this.deviceID = deviceID;
	}

	public int getDeviceID() {
		return deviceID;
	}
		
}
